package com.mic.yzzn.plc.core.ins.toolUtils;

import java.io.PrintWriter;
import java.io.StringWriter;

/**
 * Created by ASH on 16/8/16.
 */
public class ExceptionToString {
    public static String exceptionToString(Exception e) {
        StringWriter sw = new StringWriter();
        PrintWriter pw = new PrintWriter(sw);
        e.printStackTrace(pw);
        return sw.toString();
    }
}
